<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('createPwd'))
{
	function createPwd($p_pwd)
	{
		return md5(md5($p_pwd));
	}
}


if ( ! function_exists('createToken'))
{
	function createToken($prefix = '') {
		return $prefix . md5 ($_SERVER['HTTP_USER_AGENT'] . $_SERVER['REMOTE_ADDR'] . time() . mt_rand() );
	}
}
